﻿#ifndef CMDDOPRJTREEEXPANDDIR_H
#define CMDDOPRJTREEEXPANDDIR_H

#include "CommandManager/CommandBase.h"
#include <QObject>

namespace PostCommand
{
    class CmdDoPrjTreeExpandDir : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdDoPrjTreeExpandDir();
        ~CmdDoPrjTreeExpandDir();

        bool execute() override;
        void undo() override;
        void redo() override;
        void setIndex(int index) { m_index = index; }

    private:
        int m_index;
    };
} // namespace PostCommand
#endif // !CMDDOPRJTREEEXPANDDIR_H
